package com.admin.common.exception;

import cn.hutool.http.HttpStatus;
import lombok.Getter;

/**
 * 统一异常处理
 *
 * @author /
 */
@Getter
public class BadRequestException extends MyBusinessException {

    private Integer status = HttpStatus.HTTP_BAD_REQUEST;

    public BadRequestException(String msg) {
        super(msg);
    }

    public BadRequestException(int status, String msg) {
        super(msg);
        this.status = status;
    }
}
